The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
Changes 03
LICENSE 22
MANIFEST 11
META.yml 44
Makefile.PL 44
README 516
dist.ini 22
lib/Dist/Zilla/Plugin/Repository.pm 738
8 files changed (This is a version diff) 2570
@@ -1,5 +1,8 @@
 Revision history for Perl extension Dist-Zilla-Plugin-Repository
 
+0.14    2010.09.01
+        make repository attr, lazy, changeable (Sawyer X)
+
 0.13    2010.05.19
         bare minimum change for META 2 generation (rjbs)
 
@@ -1,9 +1,9 @@
 This software is copyright (c) 2010 by Fayland Lam, Ricardo SIGNES, Moritz Onken.
 
 This is free software; you can redistribute it and/or modify it under
-the same terms as perl itself.
+the same terms as the Perl 5 programming language system itself.
 
-Terms of Perl itself
+Terms of the Perl programming language system itself
 
 a) the GNU General Public License as published by the Free
    Software Foundation; either version 1, or (at your option) any
@@ -8,4 +8,4 @@ dist.ini
 lib/Dist/Zilla/Plugin/Repository.pm
 t/00-load.t
 t/release-pod-coverage.t
-t/release-pod-syntax.t
\ No newline at end of file
+t/release-pod-syntax.t
@@ -7,15 +7,15 @@ author:
 build_requires: {}
 configure_requires:
   ExtUtils::MakeMaker: 6.31
-generated_by: 'Dist::Zilla version 2.101310'
+dynamic_config: 0
+generated_by: 'Dist::Zilla version 4.102340, CPAN::Meta::Converter version 2.102400'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
   version: 1.4
 name: Dist-Zilla-Plugin-Repository
-recommends: {}
 requires:
-  Dist::Zilla: 2.101310
+  Dist::Zilla: 4.102340
 resources:
   repository: http://github.com/fayland/dist-zilla-plugin-repository
-version: 0.13
+version: 0.14
@@ -20,9 +20,9 @@ my %WriteMakefileArgs = (
   'LICENSE' => 'perl',
   'NAME' => 'Dist::Zilla::Plugin::Repository',
   'PREREQ_PM' => {
-    'Dist::Zilla' => '2.101310'
+    'Dist::Zilla' => '4.102340'
   },
-  'VERSION' => '0.13',
+  'VERSION' => '0.14',
   'test' => {
     'TESTS' => 't/*.t'
   }
@@ -31,10 +31,10 @@ my %WriteMakefileArgs = (
 
 unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
   my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
-  my $pp = $WriteMakefileArgs{PREREQ_PM}; 
+  my $pp = $WriteMakefileArgs{PREREQ_PM};
   for my $mod ( keys %$br ) {
     if ( exists $pp->{$mod} ) {
-      $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod}; 
+      $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
     }
     else {
       $pp->{$mod} = $br->{$mod};
@@ -3,7 +3,7 @@ NAME
     svn/svk/Git checkout for Dist::Zilla
 
 VERSION
-    version 0.13
+    version 0.14
 
 SYNOPSIS
         # dist.ini
@@ -26,15 +26,26 @@ DESCRIPTION
         (git://github.com/fayland/dist-zilla-plugin-repository.git).
         Defaults to true.
 
+    *   repository
+
+        You can set this attribute if you want a specific repository instead
+        of the plugin to auto-identify your repository.
+
+        An example would be if you're releasing a module from your fork, and
+        you don't want it to identify your fork, so you can specify the
+        repository explicitly.
+
 AUTHORS
-      Fayland Lam <fayland@gmail.com>
-      Ricardo SIGNES <rjbs@cpan.org>
-      Moritz Onken <onken@netcubed.de>
+    *   Fayland Lam <fayland@gmail.com>
+
+    *   Ricardo SIGNES <rjbs@cpan.org>
+
+    *   Moritz Onken <onken@netcubed.de>
 
 COPYRIGHT AND LICENSE
     This software is copyright (c) 2010 by Fayland Lam, Ricardo SIGNES,
     Moritz Onken.
 
     This is free software; you can redistribute it and/or modify it under
-    the same terms as perl itself.
+    the same terms as the Perl 5 programming language system itself.
 
@@ -1,5 +1,5 @@
 name    = Dist-Zilla-Plugin-Repository
-version = 0.13
+version = 0.14
 author = Fayland Lam <fayland@gmail.com>
 author = Ricardo SIGNES <rjbs@cpan.org>
 author = Moritz Onken <onken@netcubed.de>
@@ -12,7 +12,7 @@ remove = PodVersion
 remove = BumpVersion
 
 [Prereq]
-Dist::Zilla = 2.101310
+Dist::Zilla = 4.102340
 
 [PodWeaver]
 
@@ -1,7 +1,7 @@
 package Dist::Zilla::Plugin::Repository;
 
 BEGIN {
-    $Dist::Zilla::Plugin::Repository::VERSION = '0.13';
+    $Dist::Zilla::Plugin::Repository::VERSION = '0.14';
 }
 
 # ABSTRACT: Automatically sets repository URL from svn/svk/Git checkout for Dist::Zilla
@@ -21,10 +21,21 @@ has github_http => (
     default => 1,
 );
 
+has 'repository' => (
+    is         => 'ro',
+    isa        => 'Str',
+    lazy_build => 1,
+);
+
+sub _build_repository {
+    my $self = shift;
+    return $self->_find_repo( \&_execute );
+}
+
 sub metadata {
     my ( $self, $arg ) = @_;
 
-    my $repo = $self->_find_repo( \&_execute );
+    my $repo = $self->repository;
     return { resources => { repository => { url => $repo } } };
 }
 
@@ -127,7 +138,7 @@ Dist::Zilla::Plugin::Repository - Automatically sets repository URL from svn/svk
 
 =head1 VERSION
 
-version 0.13
+version 0.14
 
 =head1 SYNOPSIS
 
@@ -154,19 +165,39 @@ If the remote is a GitHub repository, uses the http url
 clonable url (git://github.com/fayland/dist-zilla-plugin-repository.git).
 Defaults to true.
 
+=item * repository
+
+You can set this attribute if you want a specific repository instead of the
+plugin to auto-identify your repository.
+
+An example would be if you're releasing a module from your fork, and you don't
+want it to identify your fork, so you can specify the repository explicitly.
+
 =back
 
 =head1 AUTHORS
 
-  Fayland Lam <fayland@gmail.com>
-  Ricardo SIGNES <rjbs@cpan.org>
-  Moritz Onken <onken@netcubed.de>
+=over 4
+
+=item *
+
+Fayland Lam <fayland@gmail.com>
+
+=item *
+
+Ricardo SIGNES <rjbs@cpan.org>
+
+=item *
+
+Moritz Onken <onken@netcubed.de>
+
+=back
 
 =head1 COPYRIGHT AND LICENSE
 
 This software is copyright (c) 2010 by Fayland Lam, Ricardo SIGNES, Moritz Onken.
 
 This is free software; you can redistribute it and/or modify it under
-the same terms as perl itself.
+the same terms as the Perl 5 programming language system itself.
 
 =cut